package com.riteny.oauth.core;

import org.springframework.security.web.authentication.WebAuthenticationDetails;

import javax.servlet.http.HttpServletRequest;

/**
 * @author Riteny
 * 2021/5/8  15:31
 */
public class CustomWebAuthenticationDetails  extends WebAuthenticationDetails {

    private final String userType;

    public CustomWebAuthenticationDetails(HttpServletRequest request) {
        super(request);
        userType = request.getParameter("userType");
    }

    public String getUserType() {
        return userType;
    }
}
